<template>
	<cl-page statusBarBackground="#0C81F7" background-color="#f1f1f1" :fullscreen="true">
		<view class="page-wallet animate__animated animate__fadeIn">
			<Header tit="MAKE A TRANSFER" :title="t('wallet.title')"></Header>
			<view class="border"></view>
			<view class="flex tab">
				<view
					class="flex flex-center flex-column flex50"
					@click="router.push('/pages/user/wallet/phone')"
				>
					<image class="img" src="/static/images/wallet_phone.png" mode="aspectFill"></image>
					{{ $t("wallet.phone") }}
				</view>
				<view class="flex flex-center flex-column flex50">
					<image class="img" src="/static/images/wallet_txl.png" mode="aspectFill"></image>
					{{ $t("wallet.txl") }}
				</view>
				<view class="middle"></view>
			</view>
			<view class="list">
				<view class="tit">{{ $t("wallet.new") }}</view>
				<view class="li flex align-center" v-for="(item, index) in 5">
					<image class="img" src="/static/images/avatar.jpg" mode="aspectFill"></image>
					<view>
						<view class="name">{{ cache.lang == "zh" ? "用户" : "User" }}</view>
						<view class="phone">185****9626</view>
					</view>
				</view>
				<cl-loadmore
					background-color="#fff"
					:loading="false"
					:finish="true"
					:text="$t('loadmore.text')"
					:loading-text="$t('loadmore.loadingText')"
					:finish-text="$t('loadmore.finishText')"
				></cl-loadmore>
			</view>
		</view>
	</cl-page>
</template>

<script lang="ts" setup>
import { computed, reactive, ref } from "vue";
import { onReady } from "@dcloudio/uni-app";
import { useApp, useCool, useStore } from "/@/cool";
import { useUi } from "/$/cool-ui";
import { useI18n } from "vue-i18n";
import Header from "/@/components/header.vue";
const { locale } = useI18n();
const { t } = useI18n();
const { service, router, refs, setRefs, storage, upload } = useCool();
const { cache } = useStore();
const app = useApp();
const ui = useUi();
const change = (e: any) => {
	console.log(e);
};
</script>

<style lang="scss" scoped>
.page-wallet {
	padding-bottom: 30rpx;

	.border {
		width: 100%;
		height: 130rpx;
		background-color: #0c81f7;
	}

	.tab {
		width: 690rpx;
		height: 208rpx;
		background: #ffffff;
		box-shadow: 0rpx 10rpx 20rpx 0rpx rgba(170, 170, 170, 0.1);
		border-radius: 20rpx;
		font-family: PingFangSC;
		font-weight: 400;
		font-size: 32rpx;
		color: #333333;
		position: relative;
		left: 30rpx;
		top: -110rpx;

		.middle {
			width: 2rpx;
			height: 60rpx;
			background: #f1f1f1;
			position: absolute;
			left: 50%;
			top: 74rpx;
		}

		.img {
			margin-bottom: 15rpx;
			width: 80rpx;
			height: 80rpx;
			border-radius: 50%;
		}
	}

	.list {
		width: 690rpx;
		padding: 30rpx;
		box-sizing: border-box;
		margin-top: -80rpx;
		margin-left: 30rpx;
		background: #ffffff;
		box-shadow: 0rpx 10rpx 20rpx 0rpx rgba(170, 170, 170, 0.1);
		border-radius: 20rpx;

		.tit {
			font-family: PingFangSC;
			font-weight: 400;
			font-size: 24rpx;
			color: #666666;
			margin-bottom: 20rpx;
		}

		.li {
			padding: 30rpx;
			box-sizing: border-box;

			.img {
				width: 80rpx;
				height: 80rpx;
				border-radius: 50%;
				margin-right: 30rpx;
			}

			.name {
				color: #333333;
				font-size: 32rpx;
			}

			.phone {
				color: #999999;
				font-size: 24rpx;
				margin-top: 6rpx;
			}
		}
	}
}
</style>
